package com.xyz.mockapi.common.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;

/**
 * 电驱主线订单-模拟大MES下发订单数据-BOM数据
 */
@Data
@TableName("t_online_bom")
@Schema(description = "电驱主线订单-大MES下发订单数据-BOM数据")
public class OnlineBomList implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ExcelProperty(value = "主键ID（id）", index = 0) // 对应Excel第1列
    @Schema(description = "主键ID")
    private Long id;

    @ExcelProperty(value = "物料类型ID（fBomid）", index = 1) // 对应Excel第2列
    @Schema(description = "物料类型ID")
    private Integer fBomid;

    @ExcelProperty(value = "系列（fItemcode）", index = 2) // 对应Excel第3列
    @Schema(description = "系列")
    private String fItemcode;

    @ExcelProperty(value = "小机型（fProducttype）", index = 3) // 对应Excel第4列
    @Schema(description = "小机型")
    private String fProducttype;

    @ExcelProperty(value = "零件件号（fPartcode）", index = 4) // 对应Excel第5列
    @Schema(description = "零件件号")
    private String fPartcode;

    @ExcelProperty(value = "零件名称（fPartname）", index = 5) // 对应Excel第6列
    @Schema(description = "零件名称")
    private String fPartname;

    @ExcelProperty(value = "物料用量（fAmount）", index = 6) // 对应Excel第7列
    @Schema(description = "物料用量")
    private String fAmount;
}